import { MgrDef } from "../const/ModelConst";
import MD from "../MD";
import SceneMgr from "./SceneMgr";

export default class RenderMgr implements IMgr {


    startUp(): void {
        
    }

    render():void {
        let mgr = MD.mgr[MgrDef.SCENE_MGR] as SceneMgr;

        let css2dRender = mgr.ds.css2dRender;
        let render = mgr.ds.render;
        let camera = mgr.ds.camera;
        let scene = mgr.ds.scene;
    
        if(render && camera && scene){
            render.render(scene, camera);
        }
        if (css2dRender) {
            css2dRender.render(scene, camera);
        }
    }

    dispose(): void {
        
    }
}